package com.lingyun.framework.elasticsearch;

//import org.apache.http.HttpHost;
//import org.elasticsearch.client.RestClient;
//import org.elasticsearch.client.RestHighLevelClient;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;

/**
 * @author 没事别学JAVA
 * 2021/6/2 16:29
 */
//@Configuration
public class ElasticSearchConfig{


//    @Bean
//    public RestHighLevelClient getRestHighLevelClient(){
//        RestHighLevelClient client = new RestHighLevelClient(
//                //如果是集群再配置多个
//                RestClient.builder(new HttpHost("127.0.0.1",9200,"http"))
//        );
//
//        return client;
//    }

}
